<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const getNum = () => {
            const arr = [1, 5, 8, 88, 100, 23]
            const arr1 = [2, 124, 66, 77, 88, 999]
            let sa = [...arr1, ...arr]
            console.log(sa)
            console.log(Math.max(...sa))
        }
        getNum()
    </script>
</body>

</html>